package org.example.ecsp.base.exception;


import lombok.Getter;
import org.example.ecsp.base.response.StatusCode;

//自定义的业务层异常类
public class ServiceException extends RuntimeException{
    @Getter
    private StatusCode statusCode;

    //Alt+Insert一直回车 生成一个构造方法
    public ServiceException(StatusCode statusCode) {
        this.statusCode = statusCode;
    }
}
